﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseUtils.Model
{
    public class Notification
    {

        public string Title { get; set; }

        public string Message { get; set; }

        public NotificationTypeEnum Type { get; set; }

        public int Duration { get; set; } = 4500;

        /// <summary>
        /// 通知代码
        /// 
        /// 10 = MES
        /// 20 = PLC
        /// 30 = VMLoadSuccess
        /// </summary>
        public int Code { get; set; }

    }

    public enum NotificationTypeEnum
    {
        Success,

        Warning,

        Info,

        Error
    }
}
